package com.yucc.girlimages.io.upyun;


public class UpYunException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3388266067262758901L;

	public UpYunException() {
		super();
	}

	public UpYunException(String message) {
		super(message);
	}

	public UpYunException(String message, Throwable cause) {
		super(message);
		initCause(cause);
	}

	@Override
	public String toString() {
		if (getCause() != null) {
			return getLocalizedMessage() + ": " + getCause();
		} else {
			return getLocalizedMessage();
		}
	}
	
}
